package com.sixth;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.security.crypto.password.PasswordEncoder;

/**
 * @program: self-tui-education
 * @description:
 * @author: 高振杨
 * @create: 2022-04-14 16:56
 **/
@SpringBootApplication

@MapperScan(basePackages = "com.sixth.dao")
public class SysApp {
    public static void main(String[] args) {
        SpringApplication.run(SysApp.class,args);
    }

    @Bean//交于spring管理
    public PasswordEncoder PasswordEncoder(){
        return new BCryptPasswordEncoder();
    }
}


